package net.sourceforge.krama.html.child;

import net.sourceforge.krama.html.HTMLImg;
import net.sourceforge.krama.html.HTMLSpan;

public class HTMLImage extends HTMLImg {

	private String name;
	private String src;
	private String title;
	private String fonction;
	
	public String starDraw() {
			
		setNameWidget(name);
		setSrcWidget(src);
		setTitleWidget(title);
		if(fonction != null)
			setOnClickWidget(fonction);
		return getStartWidget();
	}

	public String endDraw() {

		return getEndWidget();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void addClick(String fonction) {
		// TODO Auto-generated method stub
		this.fonction = fonction;
	}

	public String getSrc() {
		return src;
	}

	public void setSrc(String src) {
		this.src = src;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
}
